package com.iris.live.services.data.models;

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Table;

/**
 * Created by xin on 2016/7/11.
 */
@SuppressWarnings("JpaDataSourceORMInspection")
@Embeddable
@Table(name = "LSH集团信息车型", schema = "sg_lsh", catalog = "")
public class Lsh集团信息车型Model {
    private Integer 车型编号;

    @Basic
    @Column(name = "车型编号")
    @JsonProperty("车型编号")
    public Integer get车型编号() {
        return 车型编号;
    }

    public void set车型编号(Integer 车型编号) {
        this.车型编号 = 车型编号;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Lsh集团信息车型Model that = (Lsh集团信息车型Model) o;

        if (车型编号 != null ? !车型编号.equals(that.车型编号) : that.车型编号 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return 车型编号 != null ? 车型编号.hashCode() : 0;
    }
}
